Release 10.1A: OpenEdge Development:
Programming Interfaces
Loading an XML file
The
LOAD( )method reads the specified file into memory, parses it, optionally validates it, and makes its contents available to the 4GL. Once the XML file is in memory, you must get the handle to its root element by using theGET-DOCUMENT-ELEMENT( )method. Once you have the root node handle, you can manipulate the remaining child nodes.The following code fragment demonstrates loading an XML file called
myfile.xml:
Loading an XML file from a LONGCHAR
An XML file can be read from a
LONGCHARas the following code fragment demonstrates:
Loading an XML file from a MEMPTR
An XML file can be read from a
MEMPTRas the following code fragment demonstrates:
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |